<!-- 文章列表页 -->
<template>
  <div>
    <CurrencyList :title="title" :slide="slide" :path="path" />
  </div>
</template>

<script lang="ts">
import { defineComponent, reactive, toRefs } from "vue";
import CurrencyList from '../../components/CurrencyList.vue';

export default defineComponent({
  name: 'ArticleList',
  components: { CurrencyList },
  setup() {
    const data = reactive({
      title: '文章列表',
      slide: [
        { name: '_id', label: '_id' },
        { name: 'title', label: '文章标题' },
        { name: 'category', label: '类别'},
        { name: 'up', label: '作者'},
      ],
      path: 'articles',   // 请求的路径
    })

    const refData = toRefs(data);

    return {
      ...refData
    }
  }
})
</script>

<style>

</style>